<?php 
HeaderScripts::addJsLibrary(array(
	'jquery/jquery.qtip.js'
));
HeaderScripts::addScripts(array(
	'site/attractions.js'
));
?>
<div class="headerBlock">
	<div class="headerTxt">Лечебные туры</div>
	<div class="clear"></div>
</div>
<div class="detailedBlock">
	<div class="detailedBlockHeader"><?php echo htmlspecialchars($tour->title) ?></div>
	<?php if ( (strval($tour->price) != '' && $tour->price > 0) || (strval($tour->price2) != '' && $tour->price2 > 0) ) { ?>
	<div class="detailedBlockPart">
		<?php if (strval($tour->price) != '' && $tour->price > 0) { ?>
		<strong>Стоимость (в рублях):</strong>&nbsp;<?php echo $tour->price ?><br />
		<?php } ?>
		<?php if (strval($tour->price2) != '' && $tour->price2 > 0) { ?>
		<strong>Стоимость (в шейкелях):</strong>&nbsp;<?php echo $tour->price2 ?><br />
		<?php } ?>
	</div>
	<?php } ?>
	<?php $attractions = $tour->getRelated('attractions'); ?>
	<?php if (count($attractions) > 0) { ?>
	<div class="detailedBlockPart" style="padding-top: 10px;">
		<div class="detailedBlockSubheader">Достопримечательности:</div>
		<ul type="circle" class="attractions">
		<?php foreach($attractions as $attraction) { 
				$description = str_replace(array('"', "\n"), array('\"', ''), addcslashes(trim($attraction->description), '\\'));
		?><li>
		<?php if (strval($description) != '') { ?><a href="javascript: void(0)" title="<?php echo $description ?>"><?php } ?>
		<?php echo htmlspecialchars($attraction->title) ?>
		<?php if (strval($description) != '') { ?></a><?php } ?>
		</li>
		<?php } ?>
		</ul>
	</div>
	<?php } ?>
	
	<?php if ($tour->route != '') {?>
	<div><?php echo $tour->route ?></div>
	<?php } ?>
</div>